package day_14;

public class TestException03 {

    public static void main(String[] args) {
        System.out.println("程序开始执行了");
        try {
            String str = null;
            System.out.println(str.length());//NullPointerException
            return;
        } catch (Exception e) {
            System.out.println("出错了，需要解决");
        } finally {
            System.out.println("finally中的代码执行了");
        }
        System.out.println("下面的一万行代码执行完了");
    }
}
